function addWatch() {
$fname = 'WatchedItem::addWatch';
wfProfileIn( $fname );
-
+
// Use INSERT IGNORE to avoid overwriting the notification timestamp
// if there's already an entry for this page
$dbw =& wfGetDB( DB_MASTER );
WatchedItem::doDuplicateEntries( $ot->getSubjectPage(), $nt->getSubjectPage() );
WatchedItem::doDuplicateEntries( $ot->getTalkPage(), $nt->getTalkPage() );
}
-
+
/**
* @static
* @access private
);
}
$dbw->freeResult( $res );
-
+
if( empty( $values ) ) {
// Nothing to do
return true;